package com.yoda.mall.api;

import com.yoda.mall.model.entity.ums.Admin;
import com.yoda.mall.model.entity.ums.Role;
import com.yoda.mall.model.vo.ManagerInfoVo;
import com.yoda.mall.model.vo.PageResult;

import java.util.List;

/**
 * @author shawn
 * @date 2022年 12月 15日 21:32
 */

public interface AdminApi {
    Admin selectByName(String username);

    Admin selectById(Long adminId);

    ManagerInfoVo getAdminInfo(Long adminId);

    PageResult<Admin> selectByPage(Integer page, Integer pageSize, String keyword);

    Admin registerAccount(Admin admin);

    Integer assigningRoles(Long adminId, List<Long> roleIds);

    Integer updateAccount(Admin admin);

    Integer deleteAccountById(Long id);

    List<Role> getSpecifyRole(Long adminId);
}
